How custom tags appear in the Document window

How custom tags appear in the Document window depends on the values of the TAG_TYPE and RENDER_CONTENTS attributes of the TAGSPEC tag. See Customizing the interpretation and appearance of third-party tags for information on TAGSPEC. If the value of TAG_TYPE is empty, the icon specified in the ICON attribute appears. If the value of TAG_TYPE is nonempty but the value of RENDER_CONTENTS is FALSE, the icon appears as it would for an empty tag. For example, the HAPPY tag defined above might appear in the HTML like this:

<P>This is a paragraph that includes an instance of the <CODE>HAPPY</CODE> tag
(<HAPPY>Joe</HAPPY>).</P>

and in the Document window like this:

For nonempty tags that have a RENDER_CONTENTS value of TRUE, the content between the opening and closing tags (such as the text between the tags in <MYTAG>this is the content between the opening and closing tags</MYTAG>) appears in the Document window instead of the icon. If View > Invisible Elements is enabled, the content is highlighted using the Third-Party Tags color specified in Highlighting preferences. (Note that highlighting applies only to tags defined in tag database files.)

To change the highlighting color of third-party tags:

1 Choose Edit > Preferences.
2 Select Highlighting from the Category list.
3 Click the Third-Party Tags color box to bring up the color palette.
4 Choose a color, then click OK to exit the Preferences dialog box.